import request from '@/utils/request'

// 查询论坛评论列表
export function listBbsComments(query) {
  return request({
    url: '/bbsComments/bbsComments/list',
    method: 'get',
    params: query
  })
}

// 查询论坛评论详细
export function getBbsComments(id) {
  return request({
    url: '/bbsComments/bbsComments/' + id,
    method: 'get'
  })
}

// 新增论坛评论
export function addBbsComments(data) {
  return request({
    url: '/bbsComments/bbsComments',
    method: 'post',
    data: data
  })
}

// 修改论坛评论
export function updateBbsComments(data) {
  return request({
    url: '/bbsComments/bbsComments',
    method: 'put',
    data: data
  })
}

// 删除论坛评论
export function delBbsComments(id) {
  return request({
    url: '/bbsComments/bbsComments/' + id,
    method: 'delete'
  })
}
// 删除论坛评论
export function logicDelBbsComments(id) {
  return request({
    url: '/bbsComments/bbsComments/' + id,
    method: 'delete'
  })
}

// 导出论坛评论
export function exportBbsComments(query) {
  return request({
    url: '/bbsComments/bbsComments/export',
    method: 'get',
    params: query
  })
}

//回复评论
export function replyBbsComments(data) {
  return request({
    url: '/bbsComments/bbsComments/reply',
    method: 'post',
    data: data
  })
}
